@echo off
chcp 65001 >nul
echo Compiling C++ Demo Programs
echo ==========================

echo Compiling hello_world_comparison.cpp...
g++ -o hello_world_comparison.exe hello_world_comparison.cpp
if %errorlevel% == 0 (
    echo [OK] hello_world_comparison.exe compiled successfully
) else (
    echo [ERROR] hello_world_comparison.cpp compilation failed
)

echo.
echo Compiling string_comparison.cpp...
g++ -o string_comparison.exe string_comparison.cpp
if %errorlevel% == 0 (
    echo [OK] string_comparison.exe compiled successfully
) else (
    echo [ERROR] string_comparison.cpp compilation failed
)

echo.
echo Compiling oop_demo.cpp...
g++ -o oop_demo.exe oop_demo.cpp
if %errorlevel% == 0 (
    echo [OK] oop_demo.exe compiled successfully
) else (
    echo [ERROR] oop_demo.cpp compilation failed
)

echo.
echo Compiling stl_demo.cpp...
g++ -o stl_demo.exe stl_demo.cpp
if %errorlevel% == 0 (
    echo [OK] stl_demo.exe compiled successfully
) else (
    echo [ERROR] stl_demo.cpp compilation failed
)

echo.
echo Compiling universal_header_demo.cpp...
g++ -o universal_header_demo.exe universal_header_demo.cpp
if %errorlevel% == 0 (
    echo [OK] universal_header_demo.exe compiled successfully
) else (
    echo [ERROR] universal_header_demo.cpp compilation failed
)

echo.
echo Compilation completed!
echo.
echo Available programs:
echo - hello_world_comparison.exe
echo - string_comparison.exe
echo - oop_demo.exe
echo - stl_demo.exe
echo - universal_header_demo.exe
echo.
pause